package com.huang.spring01;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.*;

import javax.websocket.server.PathParam;

@SpringBootApplication
public class Spring01Application {

    public static void main(String[] args) {
        SpringApplication.run(Spring01Application.class, args);
    }

    @RestController
    public class Controller{

        @GetMapping("/get/{name}")
        public String getInfo(@PathVariable String name){

            return "你好"+name;
        }

    }

}
